Current Location: Home> Function Categories> microtime

microtime

Returns the current Unix timestamp, and the number of microseconds
Name:microtime
Category:Date and time
Programming Language:php
One-line Description:Returns the number of microseconds of the current time.

Definition and usage

microtime() function returns the number of microseconds of the current Unix timestamp.

Example

Returns the number of microseconds of the current Unix timestamp:

 <?php
echo ( microtime ( ) ) ;
?>

Try it yourself

grammar

 microtime ( get_as_float ) ;
parameter describe
get_as_float Optional. When set to TRUE, it is specified that the function should return a floating point number, otherwise it will return a string. The default is FALSE.
Similar Functions
Popular Articles